/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author rehgon
 */

import Tables.*;
import java.sql.*;

public class Main {

    public static void main(String args[]) throws SQLException {   
        
        Connection conn = null;                
        
        try {        
            //Verbindungsaufbau
            System.out.println("connecting...");
            conn = Fertigungsplan.connectToDB();
            System.out.println("connected");

            Teile.produziereTeil(conn,16);
            
        } finally {
            System.out.println("connection closed");
            conn.close();
        }             
    }
    
}
